All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.border.EmptyBorder

java.lang.Object
   |
   +----com.sun.java.swing.border.AbstractBorder
           |
           +----com.sun.java.swing.border.EmptyBorder

public class EmptyBorder
extends AbstractBorder
implements Serializable
A class which provides an empty, transparent border which takes up space but does no drawing.

Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.


Variable Index

 o bottom
 o left
 o right
 o top

Constructor Index

 o EmptyBorder(Insets)
Creates an empty border with the specified insets.
 o EmptyBorder(int, int, int, int)
Creates an empty border with the specified insets.

Method Index

 o getBorderInsets(Component)
Returns the insets of the border.
 o isBorderOpaque()
Returns whether or not the border is opaque.
 o paintBorder(Component, Graphics, int, int, int, int)
Does no drawing by default.

Variables

 o left
 protected int left
 o right
 protected int right
 o top
 protected int top
 o bottom
 protected int bottom

Constructors

 o EmptyBorder
 public EmptyBorder(int top,
                    int left,
                    int bottom,
                    int right)
Creates an empty border with the specified insets.

Parameters:
top - the top inset of the border
left - the left inset of the border
bottom - the bottom inset of the border
right - the right inset of the border
 o EmptyBorder
 public EmptyBorder(Insets insets)
Creates an empty border with the specified insets.

Parameters:
insets - the insets of the border

Methods

 o paintBorder
 public void paintBorder(Component c,
                         Graphics g,
                         int x,
                         int y,
                         int width,
                         int height)
Does no drawing by default.

Overrides:
paintBorder in class AbstractBorder
 o getBorderInsets
 public Insets getBorderInsets(Component c)
Returns the insets of the border.

Parameters:
c - the component for which this border insets value applies
Overrides:
getBorderInsets in class AbstractBorder
 o isBorderOpaque
 public boolean isBorderOpaque()
Returns whether or not the border is opaque. Returns false by default.

Overrides:
isBorderOpaque in class AbstractBorder

All Packages  Class Hierarchy  This Package  Previous  Next  Index